package com.easpeed.comon.memorycache

import com.blankj.utilcode.util.ScreenUtils
import com.easpeed.common.CommonConsts
import com.easpeed.comon.bean.ChannelSettingBean

/**
 * Created by bigyu on 2024/11/1 18:02
 * com.easpeed.comon.memorycache
 */
object CommonMemoryCache {
    @JvmStatic
    val channelCache = ChannelSettingBean()


    @JvmStatic
    var deviceName: String? = ""

    @JvmStatic
    var deviceModel: String? = ""




    @JvmStatic
    var devicelat = 0.0
    @JvmStatic
    var devicelon = 0.0

    fun getDialogMaxWidth(): Int {
        if (CommonConsts.isPad) {
            return ScreenUtils.getScreenWidth() * 2 / 5
        } else {
            return ScreenUtils.getScreenWidth() * 4 / 5
        }
    }

    fun getDialogMaxHeight(): Int {
        if (CommonConsts.isPad) {
            return ScreenUtils.getScreenHeight() * 3 / 5
        } else {
            return ScreenUtils.getScreenHeight() * 3 / 5
        }
    }

}